Optimal. Leaf size=406 \[ \frac{\tanh ^{-1}\left (\frac{e+2 f x}{\sqrt{e^2-4 d f}}\right ) \left (B (a e f-2 b d f+c d e)-A \left (2 a f^2-b e f-2 c d f+c e^2\right )\right )}{\sqrt{e^2-4 d f} \left (f \left (a^2 f-a b e+b^2 d\right )-c \left (b d e-a \left (e^2-2 d f\right )\right )+c^2 d^2\right )}+\frac{\log \left (a+b x+c x^2\right ) (-a B f+A b f-A c e+B c d)}{2 \left (f \left (a^2 f-a b e+b^2 d\right )-c \left (b d e-a \left (e^2-2 d f\right )\right )+c^2 d^2\right )}-\frac{\log \left (d+e x+f x^2\right ) (-a B f+A b f-A c e+B c d)}{2 \left (f \left (a^2 f-a b e+b^2 d\right )-c \left (b d e-a \left (e^2-2 d f\right )\right )+c^2 d^2\right )}-\frac{\tanh ^{-1}\left (\frac{b+2 c x}{\sqrt{b^2-4 a c}}\right ) \left (-b (a B f+A c e+B c d)+2 c (-a A f+a B e+A c d)+A b^2 f\right )}{\sqrt{b^2-4 a c} \left (f \left (a^2 f-a b e+b^2 d\right )-c \left (b d e-a \left (e^2-2 d f\right )\right )+c^2 d^2\right )} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 1.12677, antiderivative size = 398, normalized size of antiderivative = 0.98, number of steps used = 9, number of rules used = 5, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167 \[ \frac{\tanh ^{-1}\left (\frac{e+2 f x}{\sqrt{e^2-4 d f}}\right ) \left (B (a e f-2 b d f+c d e)-A \left (2 a f^2-b e f-2 c d f+c e^2\right )\right )}{\sqrt{e^2-4 d f} \left (f \left (a^2 f-a b e+b^2 d\right )+a c \left (e^2-2 d f\right )-b c d e+c^2 d^2\right )}+\frac{\log \left (a+b x+c x^2\right ) (-a B f+A b f-A c e+B c d)}{2 \left (f \left (a^2 f-a b e+b^2 d\right )+a c \left (e^2-2 d f\right )-b c d e+c^2 d^2\right )}-\frac{\log \left (d+e x+f x^2\right ) (-a B f+A b f-A c e+B c d)}{2 \left (f \left (a^2 f-a b e+b^2 d\right )+a c \left (e^2-2 d f\right )-b c d e+c^2 d^2\right )}-\frac{\tanh ^{-1}\left (\frac{b+2 c x}{\sqrt{b^2-4 a c}}\right ) \left (-b (a B f+A c e+B c d)+2 c (-a A f+a B e+A c d)+A b^2 f\right )}{\sqrt{b^2-4 a c} \left (f \left (a^2 f-a b e+b^2 d\right )+a c \left (e^2-2 d f\right )-b c d e+c^2 d^2\right )} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x)/((a + b*x + c*x^2)*(d + e*x + f*x^2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)/(c*x**2+b*x+a)/(f*x**2+e*x+d),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 1.06166, size = 267, normalized size = 0.66 \[ \frac{\frac{2 \tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right ) \left (-b (a B f+A c e+B c d)+2 c (-a A f+a B e+A c d)+A b^2 f\right )}{\sqrt{4 a c-b^2}}-\frac{2 \tan ^{-1}\left (\frac{e+2 f x}{\sqrt{4 d f-e^2}}\right ) \left (A \left (-2 a f^2+b e f+2 c d f-c e^2\right )+B (a e f-2 b d f+c d e)\right )}{\sqrt{4 d f-e^2}}+\log (a+x (b+c x)) (-a B f+A b f-A c e+B c d)+\log (d+x (e+f x)) (a B f-A b f+A c e-B c d)}{2 \left (f \left (a^2 f-a b e+b^2 d\right )+a c \left (e^2-2 d f\right )-b c d e+c^2 d^2\right )} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x)/((a + b*x + c*x^2)*(d + e*x + f*x^2)),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.014, size = 1698, normalized size = 4.2 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)/(c*x^2+b*x+a)/(f*x^2+e*x+d),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((c*x^2 + b*x + a)*(f*x^2 + e*x + d)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((c*x^2 + b*x + a)*(f*x^2 + e*x + d)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)/(c*x**2+b*x+a)/(f*x**2+e*x+d),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{B x + A}{{\left (c x^{2} + b x + a\right )}{\left (f x^{2} + e x + d\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((c*x^2 + b*x + a)*(f*x^2 + e*x + d)),x, algorithm="giac")
[Out]